package pfc.view.view.formularios;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import pfc.Resource;
import pfc.view.Main;

public class TelaAbout extends JDialog {

	private static final long serialVersionUID = 1L;
	
	private JPanel jContentPanel = null;
	private JLabel jLabelLogo = null;
	private JLabel jLabel1 = null;
	private JLabel jLabel = null;
	/**
	 * This method initializes 
	 * 
	 */

	public TelaAbout(JFrame frame) {
		super(frame);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        this.setSize(new Dimension(560, 275));
        this.setTitle("SAFCP");
        this.setContentPane(getJContentPanel());
        Dimension screenSize =
            Toolkit.getDefaultToolkit().getScreenSize();
        setLocation(screenSize.width/2 - (size().width/2),
                      screenSize.height/2 - (size().height/2));
        setModal(true);
	}

	/**
	 * This method initializes jContentPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPanel() {
		if (jContentPanel == null) {
			GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
			gridBagConstraints4.gridx = 0;
			gridBagConstraints4.gridy = 2;
			jLabel = new JLabel();
			jLabel.setText("SAFCP - Projeto Final de Curso - Bruno/Thiago/Uiliam");
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.gridx = 0;
			gridBagConstraints3.insets = new Insets(7, 7, 7, 7);
			gridBagConstraints3.anchor = GridBagConstraints.CENTER;
			gridBagConstraints3.gridy = 1;
			jLabel1 = new JLabel();
			jLabel1.setText("Aplicação QRCode - Versão " + Main.VERSION);
			GridBagConstraints gridBagConstraints = new GridBagConstraints();
			gridBagConstraints.gridx = 0;
			gridBagConstraints.insets = new Insets(0, 7, 7, 7);
			gridBagConstraints.gridy = 0;
			jLabelLogo = new JLabel();
			jLabelLogo.setIcon(new ImageIcon(Resource.class.getResource("logo_visagio.gif")));
			jContentPanel = new JPanel();
			jContentPanel.setLayout(new GridBagLayout());
			jContentPanel.add(jLabelLogo, gridBagConstraints);
			jContentPanel.add(jLabel1, gridBagConstraints3);
			jContentPanel.add(jLabel, gridBagConstraints4);
		}
		return jContentPanel;
	}
	
	
	


}  //  @jve:decl-index=0:visual-constraint="10,10"

